package com.cskaoyan.service;

import com.cskaoyan.bean.MarketBrand;
import com.cskaoyan.bean.common.CommonData;

import java.util.List;
import java.util.Map;

public interface AdminBrandService {
    CommonData query(Integer page, Integer limit, String sort, String order);

    List<MarketBrand> selectByBrandId(Integer brandId);

    List<MarketBrand> selectByBrandName(String name);

    void update(MarketBrand marketBrand);

    void insert(MarketBrand marketBrand);

    MarketBrand selectOne(MarketBrand marketBrand);

    MarketBrand insertAndReturnOne(MarketBrand marketBrand);

    int insertAndReturnKey(MarketBrand marketBrand);

    int delete(int id);

    List<Map> selectByMap();
}
